def testit(func, *args, **kargs):
    try:
        retval = func(*args, **kargs)
        return (True, retval)
    except Exception as e:
        return (False, str(e))


def test():
    funcs = (int, float, str)
    test_values = (45, 78, "455", "899.9", 45.31)
    for each_func in funcs:
        print("-"*20)
        for each_val in test_values:
            val = testit(each_func, each_val)
            if val[0] == True:
                print("%s(%s)=" % (each_func.__name__, each_val), val[1])
            else:
                print("%s(%s)=FAILED:" %
                      (each_func.__name__, each_val), val[1])

if __name__=="__main__":
    test()